Function Reference

_GUICtrlComboGetMinVisible

Get the minimum number of visible items in the drop-down list of a combo box

#Include <GuiCombo.au3>
_GUICtrlComboGetMinVisible($h_combobox)

 

Parameters

$h_combobox control id/control hWnd

 

Return Value

The return value is the minimum number of visible items

 

Remarks

When the number of items in the drop-down list is greater
than the minimum, the combo box uses a scrollbar.

This message is ignored if the combo box control has style
$CBS_NOINTEGRALHEIGHT.

To use $CB_GETMINVISIBLE, the application must specify comctl32.dll
version 6 in the manifest. For more information, see
Using Windows XP Visual Styles

 

Related

_GUICtrlComboSetMinVisible

 

Example


#include <GuiConstants.au3>
#include <GuiCombo.au3>

Opt('MustDeclareVars',1)

Dim $Combo,$Btn_Exit,$Status,$msg

GuiCreate("ComboBox Get Min Visible", 392, 254)

$Combo = GuiCtrlCreateCombo("", 70, 10, 270, 100,$CBS_SIMPLE)
GUICtrlSetData($Combo,"AutoIt|v3|is|freeware|BASIC-like|scripting|language")
$Btn_Exit = GuiCtrlCreateButton("Exit", 150, 180, 90, 30)
$Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))
GUICtrlSetData($Status,"Min Visible: " & _GUICtrlComboGetMinVisible($Combo))
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
            ExitLoop
    EndSelect
WEnd
Exit